Allows to configure a object-relational bilateral mapping.

Namespace: Keystone.Carbonite.Diamant
Assembly: Keystone.Carbonite.Diamant (in Keystone.Carbonite.Diamant.dll)

protected TableColumnMapping Column( 
string Name
Expression<Func<TEntity, object>> With
bool IsPrimaryKey = false, 
bool IsAutoIncremented = false 
)
This language is not supported or no code example is available.

Parameters

Name

Type: string

The name of the relational data column.

With

Type: Expression<Func<TEntity, object>>

The entity object property expressed in configuration first style.

IsPrimaryKey

Type: bool

Optional parameter that defines if this mapping involves a primary key.

IsAutoIncremented

Type: bool

Optional parameter that defines if this mapping uses a relational column that is automatically incremented.

Return Value

A TableColumnMapping.
Exception type Condition

ArgumentException

If the given entity property is not found.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono